<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>设备日志管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		function refresh(){
			window.location.reload();
		}
		function sync(){
			var type = $("#type").val();
			var equipmentId = $("#equipmentId").val();
			$("#loader").attr("style","display:initial;");
			$.ajax({
                type: "POST",
                url: "${ctx}/equipment/eleEquipmentLog/sync",
                data: {equipmentId: equipmentId,type:type},
                datatype: "json",
                success: function (data) {
        			$("#loader").attr("style","display:none;");
                	alertx(data.msg);
                },
                error: function (e) {
                    alertx("<spring:message code='tips.contactadmin' />");
                    console.log(e);
                }
            });
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<c:if test="${type == 'log' }">
				<li class="active">
					<a href="javascript:void(0);">
						<%--设备日志列表--%>
						<spring:message code="device.log.list"/>
					</a>
				</li>
		</c:if>
		<c:if test="${type == 'realtime' }">
					<li class="active">
						<a href="javascript:void(0);">
							<%--设备界面列表--%>
							<spring:message code="device.interface.list"/>
						</a>
					</li>
		</c:if>
		
	</ul>
	 <div class="control-group" style="margin-bottom:20px;/*background-color:#f5f5f5;*/" >
	 	<img src="${fns:getDictValue('website_full','website_full','')}${eleEquipmentLog.path}" />
    </div>
	
</body>
</html>